import request from '@/utils/request'

// 获取sku列表
export const reqSkuList = (page, limit) => request({
    url: `/admin/product/list/${page}/${limit}`,
    method: 'GET'
})

// 上架sku
export const reqSale = (skuId) => request({
    url: `/admin/product/onSale/${skuId}`,
    method: 'GET'
})

// 下架sku
export const reqCancel = (skuId) => request({
    url: `/admin/product/cancelSale/${skuId}`,
    method: 'GET'
})

// 获取sku详情
export const reqSkuById = (skuId) => request({
    url: `/admin/product/getSkuById/${skuId}`,
    method: 'GET'
})